package com.weixing.mall.provider.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.weixing.mall.provider.model.domain.AgentBonus;
import com.weixing.mall.provider.model.query.AgentBonusQuery;
import com.weixing.mall.provider.model.vo.AgentBonusVo;
import com.weixing.mall.provider.model.vo.AgentWithdrawBonusVo;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 代理商模块-代理商分红表 服务类
 * </p>
 *
 * @author Small
 * @since 2019-11-18
 */
public interface IAgentBonusService extends IService<AgentBonus> {

    IPage<AgentWithdrawBonusVo> agentWithdrawBonusList(Page page, Long id);

    IPage<AgentBonusVo> selectListOfPage(Page page, AgentBonusQuery agentBonusQuery);


    List<AgentBonusVo> selectList(AgentBonusQuery agentBonusQuery);

    BigDecimal countBonus(long agentId, String month);

    AgentBonus findByOrderIdAndAgentId(Long orderId, Long agentId);
}
